import java.sql.Connection;

import com.gametime.model.Person;
import com.gametime.model.Player;
import com.gametime.model.Position;
import com.gametime.model.Role;
import com.gametime.setup.HeightGenerator;
import com.gametime.setup.PlayerGenerator;
import com.gametime.util.DBUtils;
import com.gametime.util.LogUtil;

/**
 * 
 */

/**
 * @author dave
 *
 */
public class SetupRunner {

	/**
	 * @param args
	 */
	public static void main(String[] args) throws Exception
	{
		// TODO Auto-generated method stub
		
		PlayerGenerator generator = PlayerGenerator.getInstance();
		Person pers = generator.generatePerson();
		//Position pos = getPointPosition();
		Position pos = getPointPosition();
		Player p = Player.generatePlayerRandomly(pers, pos, Role.RESERVE);
		LogUtil.trace(p);
		//System.out.println(p.getHeight());
		//	System.out.println("Random Height: " + heightGenerator.getRandomHeight());
		
		
	}

	private static Position getPointPosition() {
		// TODO Auto-generated method stub
		Position pos = Position.createPosition(1, "Point Guard", "PG");
		return pos;
	}
	
	private static Position getComboGuard() {
		// TODO Auto-generated method stub
		Position pos = Position.createPosition(2, "Combo Guard", "CG");
		return pos;
	}
	
	private static Position getSmallForward() {
		// TODO Auto-generated method stub
		Position pos = Position.createPosition(5, "Small Forward", "SF");
		return pos;
	}
	
	private static Position getPowerForward() {
		// TODO Auto-generated method stub
		Position pos = Position.createPosition(7, "Power Forward", "PF");
		return pos;
	
	}
	
	private static Position getCenterForward() {
		// TODO Auto-generated method stub
		Position pos = Position.createPosition(8, "Center Forward", "CF");
		return pos;
	}
	
	private static Position getCenter() {
		// TODO Auto-generated method stub
		Position pos = Position.createPosition(9, "Center", "C");
		return pos;
	}

}
